﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.Phone.Speech.VoiceCommands;

namespace Techdays2013.Codes.SpeechRecognition
{
    class VoiceCommandHelper
    {
        /// <summary>
        /// Registers les commandes
        /// </summary>
        /// <param name="voiceCommandDefinitionUri"></param>

        public async static void RegisterVoiceCommands(string voiceCommandDefinitionUri = "ms-appx:///VoiceCommandDefinition.xml")
        {
            await VoiceCommandService.InstallCommandSetsFromFileAsync(new Uri(voiceCommandDefinitionUri, UriKind.RelativeOrAbsolute));
        }
    }
}
